using GameFramework;
using GameFramework.Event;
using GameFramework.Localization;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace VRLauncher
{
    public class LocalizationChangeEventArgs : GameEventArgs
    {
        public static readonly int EventId = typeof(LocalizationChangeEventArgs).GetHashCode();
        public LocalizationChangeEventArgs()
        {
            LocalLanguage = GameManager.Localization.Language;
        }
        public override int Id
        {
            get
            {
                return EventId;
            }
        }
        public Language LocalLanguage
        {
            get;
            private set;
        }
        public static LocalizationChangeEventArgs Create(Language language, object userData = null)
        {
            LocalizationChangeEventArgs setLacalizationEventArgs = ReferencePool.Acquire<LocalizationChangeEventArgs>();
            setLacalizationEventArgs.LocalLanguage = language;
            return setLacalizationEventArgs;
        }
        public override void Clear()
        {
          //  throw new System.NotImplementedException();
        }
    }
}
